home *** CD-ROM | disk | FTP | other *** search
/ Robotics & Artificial Int…3 (Professional Edition) / Robotics & Artificial Intelligence Tools 2003 (Professional Edition).iso / neural network tool and application / nsinstall.exe / data1.cab / DllSys_Files / TRANSFRM / TRANSFRM.C
Encoding:
C/C++ Source or Header  |  2002-03-08  |  1002 b   |  41 lines

  1. // Dynamic link library implementation of NeuroSolutions Transformer component 
  2.  
  3. #include "NSDLL.h"  
  4.  
  5. /****************************/
  6. /* Transform implementation */
  7.  
  8. __declspec(dllexport) BOOL performTransform(
  9.     DLLData    *instance,    // Pointer to instance data
  10.     NSFloat    *data,         // Pointer to the buffered data
  11.     int     length,        // Length of the buffer to be transformed
  12.     int     channel        // Current channal number
  13.     )
  14. {
  15.     int i;
  16.  
  17.     for (i=0; i<length; i++)
  18.         data[i] = 0.0f; // transform the data here
  19.     // Return whether or not to display this channel
  20.     return TRUE;
  21. }
  22.  
  23. /******************************************/
  24. /* Management of instance data (OPTIONAL) */
  25. /*
  26. __declspec(dllexport) DLLData *allocTransform(
  27.     int     length,        // Length of the buffer to be transformed 
  28.     int     channels    // Number of channels to be transformed
  29.     )
  30. {
  31.     DLLData instance=NULL;
  32.     return instance;
  33. }
  34.  
  35. __declspec(dllexport) void freeTransform(DLLData *instance)
  36. {
  37.     if (instance)
  38.         free(instance);
  39. }
  40. */
  41.